package com.polidea.rxohosble2.internal.util;


import bleshadow.javax.inject.Inject;
import ohos.location.Locator;

public class CheckerLocationProvider {
     final Locator locator;

    @Inject
    CheckerLocationProvider(Locator locator) {
        this.locator = locator;
    }

    @SuppressWarnings("deprecation")
    public boolean isLocationProviderEnabled() {
        return locator.isLocationSwitchOn();
    }
}
